package com.anjie.powerproject.service;

import com.anjie.powerproject.common.ModelTypeEnum;
import com.anjie.powerproject.config.DataSet;
import com.anjie.powerproject.entity.Model;

import java.text.ParseException;
import java.util.List;

public interface ModelService {

    List<Model> getAllModel(String deviceCode, ModelTypeEnum modelType);

    List<Model> getAllModel();

    int updateModel(Integer id,String modelName,String modelCode,Integer pointId,String modelVersion);

    boolean deleteModelById(Integer id);

    Model getSelectedModel(String deviceCode, ModelTypeEnum modelType);

    Model getModelById(Integer modelId);

    Integer getModelIdByName(String modelName);

    void saveAllModel(List<Model> models);

    void save(Model model);

    /**
     *查询同名的模型名有多少个
     */
    int getCountModelByName(String modelName);

    /**
     * 模型训练接口
     */
    void train(String basePath, DataSet dataSet, Integer modelId, String dataPath);

    /**
     * 模型预测接口
     */
    void predict(String basePath, DataSet dataSession, Integer modelId, String dataPath) throws ParseException;





}
